# try :
#     print(a/5)
# except ZeroDivisionError as e:
#     print("遇到的是除数为0的错误")
# except NameError as e:
#     print("遇到了变量没有定义的问题")



# try :
#     print(5/0)
# except ZeroDivisionError as e:
#     print("遇到的是除数为0的错误")
# except NameError as e:
#     print("遇到了变量没有定义的问题")









# # 使用多个except捕获不同的错误
# try:    
#     print(5/0)
#     print(b/2)
# except ZeroDivisionError:
#     print("除数为0")    
# except  NameError:
#     print("变量未定义")
